Vlad spent 20 minutes on his history homework and then completely solved x math problems

vlad spent 20 minutes on his history homework and then completely solved x math problems that each took 2 minutes to complete. what is the equation that can be used to find the value of y, the total time that vlad spent on his homework, and what are the constraints on the values of x and y?

math problems times; 2x minutes
History: 20 minutes

y=20+2x

@Vieno