eighteen year old with spasms , i feel you are talking about muscle cramps . then muscle cramps come in a group of muscles not to both lower limbs
get a neurologist
to see you if both legs get spasms together .
commonest cause for young guys with cramps is deficiency of vit b12 and d3 . adequate exposure to sunlight and aerobic metabolism
will go a long way in avoiding cramps .