Exact ecliptic position of Earth and Moon from Mars as photographed by Curiosity Rover?
NASA Photojournal item PIA17936 says:

Researchers used the left eye camera of Curiosity's Mast Camera (Mastcam) to capture this scene about 80 minutes after sunset on the 529th Martian day, or sol, of the rover's work on Mars (Jan. 31, 2014).

Between sols 528 and 532, Where is Curiosity? shows it in a place called Dingo Gap at Martian longitude 137.41°, latitude -4.63°.
At that location on Mars in Stellarium, sunset on 2014-01-31 occurs around 21:00 UT, so the picture was taken around 22:20 UT.
JPL HORIZONS gives these J2000 heliocentric positions at that time:





lon. (l)
lat. (b)
dist. (r)




Mars
168.784°
1.613°
1.662 au


Earth
131.767°
-0.001°
0.985 au


Moon
131.732°
0.010°
0.983 au




and these Mars-centric positions:





lon. (λ)
lat. (β)
dist. (Δ)




Earth
22.935°
-2.535°
1.058 au


Moon
22.826°
-2.522°
1.059 au




In other words, the Moon should appear about 0.11° west of Earth in the Martian sky, or to the right if Mars's north celestial pole is up:

But looking toward the western horizon (zenith up) from a tropical latitude, celestial north is to the right, so the Moon appears below Earth in the photo.