If Marvin solved 40 math problems yesterday, he has solved 40*3 = <<40*3=120>>120 math problems today.

The total number of math problems that Marvin has practiced is 120+40 = <<120+40=160>>160

Arvin has practiced twice as many as Marvin, so has practiced 160 * 2 = <<160*2=320>>320 problems.

Together, Marvin and Arvin have solved 320+160 = <<320+160=480>>480 math problems.

# Answer

480
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
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?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
480
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?
train