package application;

public class Rational {
     private int x;
     private int y;
     public Rational add(Rational r1, Rational r2) {
    	 Rational temp = new Rational();
    	 temp.x = r1.x * r2.y + r1.y * r2.x; 
    	 temp.y = r1.y * r2.y; 
    	 return temp; 

     }
}
