MESI states after two cores read a line and one then writes it

Line X starts out in no cache (Invalid everywhere). Core A reads X (miss, brings it in). Core B then also reads X (miss in B, but the line exists in A). Finally, Core A writes to X. What are the MESI states of the line in Core A's and Core B's caches immediately after Core A's write completes?

11 of 47 in Computer Architecture