Help me in solving LBJ19 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(;
		int t = read.nextInt();
		for(int i=0; i<t; i++)
    		int n = read.nextInt();
    		int x = read.nextInt();

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