how to do theoretical probability?

Need specific problem as example.