public static double two(int sameField, double field1SVal, double field2SVal, int diffField, double field1DVal){


		double a = field1SVal;
		double b = field1DVal;
		double c = field2SVal;
		System.out.println("a:" + a);
		System.out.println("b:" + b);
		System.out.println("c:" + c);

		if(sameField == 2 || sameField == 3){
			a = 1.0/a;
			c = 1.0/c;
		}
		if(diffField == 2 || diffField == 3){
			b = 1.0/b;
		}

		double d = a*b*1.0/c;


		if(diffField == 2 || diffField == 3){
			d = 1.0/d;
		}
		return d;
	}