how to solve pair fraction