Split breaks

It is infrigement or not.Drive some 10 min break 3h 20 min,drive again about 3 hour and break 30 min.Will tacho reset time or not.I think it is legal.Firdt break must at least 15 or … and second 30 min need before reach 4h30 min driving time.