when= عندما
When i was i japan, i took some photos= عندما كنت في اليابان, اخذت بعض الصور
اخذت بعض الصور عندما كنت في اليابان
when i was 18 years old, I moved to cairo to study= عندما كنت في الثامنه عشر من عمري, انتقلت الي القاهره لادرس
when my friend saw me, he waved= عندما رأني صديقي, لوح لي
you can also use (and i), but not for all cases as it's not applied to the 3rd sentence. There's a difference between those two 'when's, i hope you know what i mean'
و انا= and i (literal translation)
When I was 18 years old, I moved to Cairo to study= و انا في الثامنه عشر انتقلت الي القاهره لأدرس