I believe brake systems are split in two so that wheels on each diagonal are joined so that should one of the two halves of the system fail you still have one front and one rear wheel effectively,braking
As its two diagonal opposite wheels getting hot it would suggest,a blockage in that half of the system?
BTW I need to get mine sorted as I can brake once and all is fine but if I brake and then lift off and brake again the pedal,goes harder and effect of brakes is less fine if left about 10seconds. Tried it when stationary and I could hear a hiss on first brake press so which part needs replacing and I will,get onto sheep to book it in