A) Main effect of task transition: Regions of the brain that respond more strongly during switch compared to repeat trials in adolescents and adults (threshold T = 2.11, p<0.05, FDR-corrected, in 25 contiguous voxels, yellow colour scale). B) Main effect of congruence: Regions of the brain respond more strongly during congruent compared to incongruent trials in adolescents and adults (threshold T = 2.64, p<0.05, FDR-corrected, in 25 contiguous voxels, blue colour scale), and regions of the brain that respond more strongly during incongruent compared to congruent trials in adolescents and adults (threshold T = 2.97, p<0.05, FDR-corrected, in 25 contiguous voxels, red colour scale). C) Main effect of group in the subsample analysis (N = 45 error-prone adolescents and N = 28 adults): Regions of the brain that respond weaker in adolescents compared to adults (threshold T = 2.87, p<0.05, FDR-corrected, in 25 contiguous voxels, yellow colour scale).