Compare three voltages by using comparator
Here is one way. Your biggest issue is getting accurate 15, 10 and 5V values when the max and min output values of op-amps is vague.

Hence the need for pots in this answer.