The sum of two numbers is 100. Such that the first number is twice as large as the second number, when the second number is subtracted by 1.

x+y = 100

x = 2(y-1)

now just find x and y