subtract 8 from 5, then subtract r from the result