<human>:  The number of math problems that Marvin practiced today is three times as many as the number of problems he solved yesterday. His friend, Arvin, has practiced twice as many math problems on each day. How many math problems have they practiced altogether if Marvin solved 40 math problems yesterday?
<bot>: How many math problems did Marvin solve today? ** If Marvin solved 40 math problems yesterday, he has solved 40*3 = <<40*3=120>>120 math problems today.
How many math problems has Marvin practiced altogether? ** The total number of math problems that Marvin has practiced is 120+40 = <<120+40=160>>160
How many math problems has Arvin practiced altogether? ** Arvin has practiced twice as many as Marvin, so has practiced 160 * 2 = <<160*2=320>>320 problems.
How many math problems have Marvin and Arvin practiced altogether? ** Together, Marvin and Arvin have solved 320+160 = <<320+160=480>>480 math problems.
#### 480