If the two inner loops really don't share any data, you can do it loke this:
task First;
task Second;
task body First is
...
begin
for i in 1 .. it loop
for x in 1 .. A loop
for y in 1 .. B loop
...
end loop;
end loop;
end loop;
end First;
task body Second is
...
begin
for i in 1 .. it loop
for x in 1 .. A loop
for y in 1 .. B loop
...
end loop;
end loop;
end loop;
end Second;