"Look at the green apples and pears."

In this sentence, does the adjective "green" apply to both nouns? Is there a guiding rule for this? Thank you.