Help me in solving CCHOCOLATES problem

My issue

what is wrong that i done

My code

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int t = scanner.nextInt();

        while (t-- > 0) {
            int x = scanner.nextInt();
            int y = scanner.nextInt();
            int z = scanner.nextInt();
            // Your code goes here
            System.out.println(x*5+y*10);
            
        }
    }
}

Learning course: Basic Math using Java
Problem Link: Chef and Chocolates Practice Problem in - CodeChef

@sneharika04
your logic is not right
plzz refer my c++ code.

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	int t;
	cin>>t;
	
	while(t--){
	    int x,y,z;
	    cin>>x>>y>>z;
	    int noc=0;
	    int sum;
	    sum=5*x+10*y;
	    if(sum>=z){
	       noc=sum/z;
	    }
	    cout<< noc<<endl;
	}
	return 0;
}