hi, I am very new to programming and i need help on on this question

"a table have 4 legs, a stool have 3 leg, given 300 legs, find number of tables and stools."

it is to be done with public static void main(String[] args){

I started recently with the class so we only know so much to methods,Conditionals and recursion.

I have done quadratic equations with java. so i may know a thing or two on variables and math methods.

the thing is this question has an equation with two variables. I am to list down the number of stools and tables with System.out.print

so, can anyone tell me what i need to know or just how to start out on this question?

I apologize for my english :)

thank you in advance

edit:i posted on the wrong section :), you can still help me out here