One day at a time makes everything right!
Most of the trash that ends up in the ocean is either left directly on the beach but most of it is just out on the streets and is washed down to the sea through storm water drains and rivers.
Some of the trash that is washed down particularly plastics can last in the ocean for years. There are plenty of other items that make up the marine garbage. Such as fishing nets, plastic bags, etc.