Help me in solving BMJ18 problem

My issue

My code

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 a = read.nextInt();
    		int b = read.nextInt();
    		// Update your code below this line to solve the problem
    		if(a==7){
    		System.out.println("A wins");
    		}else if(b==7){
    		    System.out.println("B wins");
    		}

		}
	}
}

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

@narendrakathi8
U don’t need to print who wins to have to print the 7- (maximum of A and B).