Walkthrough: Your final Island Trial takes place within the Abandoned Thrifty MegaMart at the end of Route 14, and is set by none other than Captain Acerola. This trial involves you searching through the building and taking pictures via your Poke Finder of three Ghost Pokemon. These Ghost Pokemon include Gastly, Haunter and Gengar, all of which are at Level 30.
After taking pictures of all three Pokemon, a ghost Pikachu will lead you to the backroom, the same you will later find from Acerola that doesn't exist. Once in the so-called backroom, you must take a picture of the Totem Pokemon to Battle it, which is a Level 33 Mimikyu. All of it's Stats are increased by one stage, like the previous Totem Pokemon, as the battle begins, with being able to call upon both Haunter and Gengar at Level 27.
After defeating the Totem Pokemon and all the Pokemon it calls for help, your last Ula'Ula Island Trial will be complete. You will obtain Ghostium Z from Acerola, and the two of your, plus Hau, will return to Aether House.