def collect_fraction(num1, num2):
	x1 = num1[0]
	x2 = num2[0]
	y1 = num1[1]
	y2 = num2[1]

	first_num = x1 * y2 + x2 * y1
	second_num = y2 * y1

	return simplify_fractions((first_num,second_num))
 def test_with_symple_number(self):
     number = (1, 7)
     res = simplify_fractions(number)
     self.assertEqual(res, (1, 7))
 def test_with_numbers_with_gcd_four_first_number_is_smaller(self):
     number = (8, 28)
     res = simplify_fractions(number)
     self.assertEqual(res, (2, 7))
 def test_second_number_is_smaller(self):
     number = (462, 63)
     res = simplify_fractions(number)
     self.assertEqual(res, (22, 3))
 def test_with_numbers_with_gcd_three_first_number_is_smaller(self):
     number = (3, 9)
     res = simplify_fractions(number)
     self.assertEqual(res, (1, 3))