In a town, the probability that a person attends a gym on weekdays is 0.7, the probability that a person attends the gym on weekends is 0.4, and the probability that a person attends the gym on weekdays or weekends, or both is 0.3. What is the probability that a person attends the gym on both weekdays and weekends?