# Find the Relative Salary

## Puzzle Statement

Steve would like to determine the relative salaries of three coworkers using two facts:
1. First, he knows that if Fred is not the highest paid of three, then Janice is.
2. Second, he knows that if Janice is not the lowest paid,, then Maggie is paid the most.
Is it possible to determine the relative salaries of Fred, Maggie and Janice from what Steve knows? If so, who is paid the most and who the least?

## Quick Solution

Fact 1 says that if Fred is not the highest paid, then Janice is. This results in two situations:
1. Fred is not the highest paid
1. Janice is the highest paid.
2. Then by fact 2, Janice is not the lowest pad hence Maggie is the most paid.
3. Which contradicts with established truth that Janice is highest paid.
4. Hence, this case is incorrect and results in second condition.
2. Fred is the highest paid
1. Now Maggie can't be the most paid, because Fred is the most paid. Hence, the second statement is false.
2. Which means that Janice is lowest paid.
This establishes the relative order Janice < Maggie < Fred

## Solution using propositions to Find the Relative Salary

In the previous puzzle "Identify the Murder", we solved the puzzle with reasoning without formal methodologies. Here we will try to find our way through the propositional calculus and arrive to a situation. Let us consider three statements:
1. F denotes that, "Fred is highest paid."
2. J denotes that, "Janice is lowest paid."
3. M denotes that,"Maggie is the most paid."
Then the first fact says that, if NOT F then NOT J AND NOT M. This can be expressed using propositions as ¬F → (¬J ∧ ¬M). The second fact says that, if NOT J then M. This can be expressed using propositions as ¬J → M. We can use these two propositions to check for consistency. For this purpose we can use a truth table as shown below: The last two columns of the truth table shows the two facts we know. Also, both the facts are true only in the last three rows. Let us now examine the last three rows of the table separately. Looking at the first three columns, shows the following:
1. Row 1 & Row 3 has F and M true, which means Fred is highest paid and Maggie is most paid. But both cannot be highest paid, hence these two rows do not satisfy the propositional consistency.
2. Whereas Row 2 is not contradicting the proposition.
So, the solution to this problem would be when F is true, J is true and M is false.  Which means
• Fred is highest paid
• Janice is lowest paid and
• Maggie is not the most paid.
Hence the relative order of their salaries would be Janice < Maggie < Fred.