You have to keep in mind something, the same thing has diffent lines
In enemies, a inmunity has some lines, a repel has others, the same thing for weaknees
Selfish Basalt from Kanji's dugeon is weak to everything except Phys, one give you at least 3 lines, that is around 18 from that enemy
Rainy Brother 4 from the same dugeon is the same plus phys, just null instead of weak, with the exception of ice, his is weak to ice, now we have around 36
Keep in mind, the number may not be exact, since I don't know how many lines give each, I just know, the give more than one
Between Rise and Kanji's dungeons there will be multiple shadows with this pattern of being weak, null, repel, absorb to multiple things, so with once get Rise going back and stall enemies with scan will be a good idea
Is obvius that this isn't all, there are boss exclusive line, AOA lines, party hitting weakness and failing attacks, being hit with a status effect, avoiding attacks, but I think farming lines with these tipe of shadows since they aren't as RNG as the status ones, and since you are in it, try hitting weakness and farm the lines of hitting weakness, with a party member
If you do this you may get this trophie in the boss of the third final dungeon
Good luck with will need it, really.