If the ratio of the number of apples to the number of oranges in a basket is \(3:5\) and there are 40 fruits in total, how many apples and oranges are there in the basket? Let's think step by step and output the final answer within \boxed{}.
user