Answer
$6$ hours as a lifeguard, and $8$ as a cashier.
Work Step by Step
Let $x$ be the hours worked as a lifeguard, then the hours worked as a cashier is $14-x$. Our equation is: $8x+(14-x)6=96\\8x+84-6x=96\\2x=12\\x=6$
Thus we worked $6$ hours as a lifeguard, and $8$ as a cashier.