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?