private static String findCoordinates(String e1, String e2){
		
		String[] strE1 = e1.split("x");
		String[] strE2 = e2.split("x");
		
		double[] equation1 = new double[2];
		double[] equation2 = new double[2];
		
		//in case the equation is in form y=ab (E.g. y=5x), makes it easier to assign zero to second element to carry out calculations
		if(strE1.length == 1){
			equation1[0] = Double.parseDouble(strE1[0]);
			equation1[1] = 0.0;
		}
			
		//in case the equation is in form y=ab (E.g. y=5x), makes it easier to assign zero to second element to carry out calculations
		if(strE2.length == 1){
			equation2[0] = Double.parseDouble(strE2[0]);
			equation2[1] = 0.0;
		}
		
		//iterate as normal if equation is in full form y=ab+c
		if(strE1.length == 2){

			for(int i=0; i<equation1.length; i++){
				equation1[i] = Double.parseDouble(strE1[i]);
			}
		}
			
		//iterate as normal if equation is in full form y=ab+c
		if(strE2.length == 2){

			for(int i=0; i<equation2.length; i++){
				equation2[i] = Double.parseDouble(strE2[i]);
			}
		}
				
		double LHS = equation1[0] - equation2[0]; 
		double RHS = equation2[1] - equation1[1];
			
		double x = RHS / LHS;
		double y = (equation1[0] * x) + equation1[1];
		
		return Double.toString((x*100)/100) + ", " + Double.toString((y*100)/100);
	}