Need to make a Java function but unsure what to do

I'm trying to creat a function (R) that asks users how many people will visit an amusement park and returns the cost of tickets. The price depends on each person's age (function Q) If someone is <30 the ticket cost is $10, if they are between 30<=x<=50 the ticket cost is $14, if they are >50 the ticket cost is $11. Also, I need to create a function S that takes in the total ticket price and returns the total ticket price with 7.5% tax.

Here's what I have so far:

import java.util.Scanner;

class Scratch { public static void main(String[] args) {

}
public static int q() {
    Scanner sc = new Scanner(System.in);
    System.out.println("Enter your age");
    int age = sc.nextInt();
    while ((age < 20) || (age > 100)) {
        System.out.println("Enter your age");
        age = sc.nextInt();
    }
    int price;
    if ((age<30)&& (age>20)){
        price = 10;
    }
    else if ((age>30)&& (age<50)){
        price = 14;
    }
    else if ((age>50)&& (age<100)){
        price = 11;
    }
    return age;
}
public static int r(int age){
    Scanner scrn = new Scanner(System.in);
    System.out.println("How many visitors?");
    int visitors = scrn.nextInt();
    for (int i = 0; i<visitors; i++){
        q();
    }
    return visitors;
}

}