Help me in solving LBJ20 problem

My issue

My code

// Update the code below to solve this problem
import java.util.Scanner;

class Codechef
{
	public static void main (String[] args)
	{
		Scanner read = new Scanner(System.in);
		
		int t = read.nextInt();
		for(int i=0; i<t; i++)
		{
    		int x = read.nextInt();
    		int y = read.nextInt();

		}
	}
}

Learning course: Solve Programming problems using Java
Problem Link: CodeChef: Practical coding for everyone

Can anyone let me know what actually the problem says…
Coz I did not Understand…

@sahil_2701
it states that u have u solve two problems A and B and after each passing minute of the contest the score of A and B is reducing by 2 and 4 respectively like after 1 minute the total score u can get if 500-2 and 1000-4 for A and B . So u r given x and y minutes to solve A and B it means max point of A u will get is 500-x2 and B is 1000-4y;
Thats the whole logic

Can u give me the code of this problem…

// Update the code below to solve this problem
import java.util.Scanner;

class Codechef
{
public static void main (String[] args)
{
Scanner read = new Scanner(System.in);

	int t = read.nextInt();
	for(int i=0; i<t; i++)
	{
		int x = read.nextInt();
		int y = read.nextInt();
        System.out.println(Math.max(500-(x*2)+1000-((y+x)*4),500-((x+y)*2)+1000-((y)*4)));
	}
}

}