Ugh. No easy way.
If those two lines come from two separate SELECTs, then yes, we could probably do it.
This might be easier to solve in your (assumed) PHP code than in the SQL query.
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.