Maurice had only been horseback riding a handful of times in his life. His best friend, Matt, goes horseback riding regularly. When Maurice went to visit Matt for two weeks, he rode another 8 times. Each time, Matt went with him. Meanwhile, besides the times that Matt accompanied Maurice, he rode an additional 16 times. If the total number of times Matt rode during that two weeks is three times the number of times Maurice had ridden before his visit, how many times had Maurice been horseback riding before visiting Matt?
During the two weeks, Matt rode a total of 16 times + 8 times = <<16+8=24>>24 times.
Before his visit, Maurice had ridden 24 times / 3 = <<24/3=8>>8 times.
#### 8