Convert a given temperature to another system based on given boiling and freezing points
There are two thermometers and given five integers F1, B1, F2, B2, and T, where F1 and B1 are the Freezing points and Boiling Point of water on thermometer 1, and F2 and B2 are the Freezing points and Boiling Point of water on thermometer 2 respectively, and T is some temperature recorded on thermom