Brendan has six less than five times the number of pencils that Riley has. Let p represent the number of pencils Riley has. Write an algebraic expression that represents the number of pencils Brendan has in terms of p, the number of pencils that Riley has.