Help me in solving TAXSAVING problem

My issue

My code

#include <iostream>
using namespace std;

int main() {
	int t;
	cin>>>t;
	while(t--){
	    int x, y;
	    
	}
	return 0;
}

Problem Link: TAXSAVING Problem - CodeChef

It is like you have to make minimum amount of investment for not paying the tax.
For this you have to make minimum investment of (y-x ) if y>x (to make y=x for no taxes) and 0 if y<x.