Algebra Examples

Solve the Function Operation 45x+50y=2 , 500
I am unable to solve this problem.