Joe bought a pair of basketball shoes for $49.99 and 2 packages of sport socks for $4.79 each. How much did he spend altogether?