Final answer:
Movie A earned $517 million, and Movie B earned $504 million.
Step-by-step explanation:
Let's assume that Movie A earned x million. According to the information given, Movie B earned $13 million less than Movie A, so the earnings of Movie B can be represented as (x - 13) million.
Together, the two films earned $1021 million, which can be represented as x + (x - 13) = 1021 million.
Combining like terms, we get 2x - 13 = 1021.
Adding 13 to both sides of the equation, we have 2x = 1034.
Dividing both sides by 2, we get x = 517.
Therefore, Movie A earned $517 million, and Movie B earned $504 million.