Three people are walking on a beach.
A few people are near the ocean
Walking on a beach implies that they are near the ocean.
Three people can also be described collectively as 'a few people', also if they are on a beach this implies they are near the ocean.
Three people are a few people, and beach implies ocean.